﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Database;

namespace Business
{
    public class QuanLyTaiLieu
    {
        TrungTamEntities TrungTam;
        public QuanLyTaiLieu(){
            TrungTam = new TrungTamEntities();
        }

        public List<TaiLieuHocTap> LayDanhSachTaiLieu(){
            try{
                var query = (from p in TrungTam.TaiLieuHocTaps
                             select p).ToList();
                return query;
            }
            catch(Exception ex)
            {
                return null;
            }
        }
    }
}
